<?php
namespace Common\Model;
use Common\Model\VRNewsModel;
class NewsColumnEntranceTypeModel extends VRNewsModel
{
	
	protected $_validate = array(
		//array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
	);
	
	//获取快捷入口类型
	public function GetTypeList(){
		$list = $this->Order('type_id asc')->select();
		return $list;
	}
	
	//入口类型列表
	public function GetTypeIndex($pageStart, $pageSize){
		$return_data = array();
		$list = $this->where('')->Order("type_id desc")->limit($pageStart, $pageSize)->select();
		$count = $this->where($where)->count();
		$return_data['list'] = $list;
		$return_data['count'] = $count;
		return $return_data;
	}
	

}

